//goods_api.js
import http from '@/public/js/http.js'
 

export const getNewestGoods = () => {
    return http({
        url: '/goods/newest',
        method: 'get',
    })
};
export const getHotestGoods = () =>{
    return http({
        url: '/goods/hotest',
        method: 'get',
    })
};
export const getGoodsByBrandSeries = (data) =>{
    return http({
        url: '/goods/byBrandSeries',
        method: 'get',
        params: data,
    })
};
export const getGoodsDetail=(data)=>{
    return http({
        url: '/goods/detail',
        method: 'get',
        params: data,
    })
}
export const getGoodsComment=(data)=>{
    return http({
        url: '/goods/comment',
        method: 'get',
        params: data,
    })
}